package org.wy.feign.client;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @name: CommonFeign
 * @author: Zhang Jian
 * @date: 2024-01-09 10:19
 */
//@FeignClient(name = "service-basedata", path = "/service-basedata")
@FeignClient(name = "service-basedata", path = "/service-basedata", url = "192.168.0.10:8401")
public interface CommonFeign {
    //192.168.0.7:8777
    // url = "25.66.195.196:8777
    /**
     * 实时停电接口
     * @param dwbm
     * @param kind
     * @return
     */
    @GetMapping("/zy/homePage/getSstdlb")
    JSONObject getSstdlb(@RequestParam("dwbm") String dwbm, @RequestParam("kind") String kind, @RequestParam("tdsj") String tdsj,
                         @RequestParam("tjfw") String tjfw, @RequestParam("tjsj") String tjsj, @RequestParam("fdzt") String fdzt);

    /**
     * 故障抢修
     * @param date
     * @param dwbm
     * @return
     */
    @GetMapping("/zy/homePage/getGzqx")
    JSONObject getGzqx(@RequestParam("date") String date, @RequestParam("dwbm") String dwbm);

    /**
     * 故障抢修
     * @param date
     * @param dwbm
     * @return
     */
    @GetMapping("/zy/homePage/getGzqxtj")
    JSONObject getGzqxtj(@RequestParam("date") String date, @RequestParam("dwbm") String dwbm);

    /**
     * 停电城市信息
     * @param dwbm
     * @param tjfw
     * @param tjsj
     * @param kind
     * @return
     */
    @GetMapping("/zy/homePage/getTdcs")
    JSONObject getTdcs(@RequestParam("dwbm") String dwbm
            ,@RequestParam("tjfw") String tjfw
            ,@RequestParam("tjsj") String tjsj
            ,@RequestParam("kind") String kind
    );

    /**
     * 热力图map
     * @return
     */
    @GetMapping("/zy/homePage/getAllTdyh")
    JSONObject getAllTdyh();

    /**
     * 停电信息详细--(基本信息+研判信息)
     * @param objId
     * @return
     */
    @GetMapping("/zy/homePage/getTdsjxx")
    JSONObject getTdsjxx(@RequestParam("objId") String objId);

    /**
     * 停电信息详细--(抢修进度)
     * @param tdsjObjId
     * @return
     */
    @GetMapping("/zy/homePage/getLcjdsj")
    JSONObject getLcjdsj(@RequestParam("tdsjObjId") String tdsjObjId);
}
